const a = async function (
  _,
  {
    transfer: {
      data: { list },
      formSearch,
    },
  },
  { $grid, xe: { mapTree } }
) {
  const items = list.filter(function ({ CTYPE }) {
    return CTYPE == 1;
  });
  const unit = formSearch.local?.unit || 10000;
  mapTree($grid.columns, function (it) {
    const isMoneyField =
      it.formatter && (it.formatter == "money" || it.formatter[0] == "money");
    if (isMoneyField) it.formatter = ["money", unit];
    return it;
  });
  await $grid.reloadColumn($grid.columns);
  return { items, total: items.length };
};
